package cn.bgs.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Maintenance对象", description="")
public class Maintenances implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "维修记录表id")
    private Integer maintenanceId;

    @ApiModelProperty(value = "小区中间表id")
    private Integer middleId;

    @ApiModelProperty(value = "维修项目表id")
    private Integer projectTypeId;

    @ApiModelProperty(value = "标题")
    private String theTitle;

    @ApiModelProperty(value = "问题描述")
    private String problemDescription;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约时间")
    private LocalDateTime appointmentTime;

    @ApiModelProperty(value = "维修流程（已提交、审核中、审核通过、审核失败）")
    private String maintenanceProcess;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "项目名称")
    private String theProjectName;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "业主名字")
    private String owner;

    @ApiModelProperty(value = "小区名字")
    private String communityName;
}
